package com.fhz.okhttptest;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.OnLifecycleEvent;

/**
 * 时间:2023/6/30
 *
 * @author Mr.Feng
 * 简述: TODO
 */
public class Login implements LifecycleObserver {

    @OnLifecycleEvent(Lifecycle.Event.ON_START)
    public void test(){
        //Activity是onstrat()才掉用
    }
    @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
    public void disstroy(){
        //
    }
}
